package com.zhixi100.framework.contstants;

/**
 * Created by ace on 2017/8/23.
 */
public class RestCodeConstants {

    public static final int SUCCESS_CODE = 200; //成功

    public static final String SUCCESS_CODE_MESSAGE = "接口调用成功"; //成功

    public static final int TOKEN_ERROR_CODE = 40101; //token验证失败
    public static final int TOKEN_FORBIDDEN_CODE = 40301;//token禁止访问


    /*** 一下是gate微服务常用的状态*/

    /** ip未添加到白名单 */
    public static final int IPS_FORBIDDEN_CODE = 40381 ;

    public static final String IPS_FORBIDDEN_CODE_MESSAGE = "ip未添加到白名单" ;

    /** 应用鉴权失败 */
    public static final int SECURITY_FORBIDDEN_CODE = 40382 ;

    public static final String SECURITY_FORBIDDEN_CODE_MESSAGE = "应用鉴权失败" ;

    /** 接口未被授权访问 */
    public static final int INTERFACE_FORBIDDEN_CODE = 40383 ;

    public static final String INTERFACE_FORBIDDEN_CODE_MESSAGE = "接口未被授权访问" ;

    /** 用户余额不足 */
    public static final int USER_LOCKED_CODE = 40385 ;

    public static final String USER_LOCKED_CODE_MESSAGE = "用户被锁定" ;


    /** 用户余额不足 */
    public static final int AMOUNT_FORBIDDEN_CODE = 40384 ;

    public static final String AMOUNT_FORBIDDEN_CODE_MESSAGE = "用户余额不足" ;


    /** 接口调用失败 */
    public static final int SERVICE_ERROR_CODE = 40181 ;

    public static final String SERVICE_ERROR_CODE_MESSAGE = "接口调用失败" ;


    /** 参数格式错误 */
    public static final int PARAM_ERROR_CODE = 40182 ;

    public static final String PARAM_ERROR_CODE_MESSAGE = "参数格式错误" ;


}
